<%-- 
    Document   : salir
    Created on : 15-feb-2012, 23:23:44
    Author     : Deico
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@page import="java.util.*,java.io.*,java.lang.*,java.sql.*"%>




    
    <%
            HttpSession sesion=request.getSession();            
            String nombre=(String)sesion.getAttribute("user");
            if (nombre!=null)
            {
                sesion.invalidate();
                
    %>
        <jsp:forward page="index.jsp">
            <jsp:param name="Correcto" value="Validacion correcta"/>
                
        </jsp:forward>

       
            }
            else
            {
                 %>
        <jsp:forward page="error.jsp">
            <jsp:param name="Error" value="Es Obligatorio identificarse"/>
                
        </jsp:forward>
 <%
            }
 %>
